package net.huashitong.scheduling.utils;

import java.util.ArrayList;
import java.util.List;

import net.huashitong.Indicators.filter.IndicatorBreakdownFilter;

public class AreaNameUtils {

	
//	A1	    大田县
//	A2	    连城县
//	A3	    武平县
//	A4	    古田县
//	A5	武夷山
//	A6	闽清
//	A7	永泰
//	A8	    浦城县
//	A9	    华安县
//	A10	    宁化县
//	A11	    将乐县
//	A12	    顺昌县
//	A13	    泰宁县
	public static final String DTX = "DT1";
	public static final String LCX = "LC2";
	public static final String WPX = "WP3";
	public static final String GTX = "GT4";
	public static final String WYS = "WY5";
	public static final String MQ = "MQ6";
	public static final String YT = "YT7";
	public static final String PCX = "PC8";
	public static final String HAX = "HA9";
	public static final String NHX= "NH10";
	public static final String JLX = "JL11";
	public static final String SXX = "SX12";
	public static final String TNX = "TN13";
	
	public static IndicatorBreakdownFilter getAreaName(IndicatorBreakdownFilter filter){
		List<String> areas = filter.getAreas();
		List<String> areasS = new ArrayList<String>();
		for (String area : areas) {
			String area1 ="";
			if(DTX.equals(area)){
				area1 = "大田县";
			}else if(LCX.equals(area)){
				area1 = "连城县";
			}else if(WPX.equals(area)){
				area1 = "武平县";
			}else if(GTX.equals(area)){
				area1 = "古田县";
			}else if(WYS.equals(area)){
				area1 = "武夷山市";
			}else if(MQ.equals(area)){
				area1 = "闽清县";
			}else if(YT.equals(area)){
				area1 = "永泰县";
			}else if(PCX.equals(area)){
				area1 = "浦城县";
			}else if(HAX.equals(area)){
				area1 = "华安县";
			}else if(NHX.equals(area)){
				area1 = "宁化县";
			}else if(JLX.equals(area)){
				area1 = "将乐县";
			}else if(SXX.equals(area)){
				area1 = "顺昌县";
			}else if(TNX.equals(area)){
				area1 = "泰宁县";
			}
			areasS.add(area1);
		}
		filter.setAreas(areasS);
		return filter;
	}
}
